package com.deepfos.outreach.rest;

import com.deepfos.outreach.domain.CashFlowPushDto;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;
import java.util.Map;


@RestController
public class BaffleHandler {

    @PostMapping("/sychCashFlow")
    public Object execute(@RequestBody List<CashFlowPushDto> map) {
        return new HashMap<String, Object>() {{
            put("code", "0");
            put("data", map);
        }};
    }
}
